{% extends "::base.html.twig" %}

{% block title %}Vidéos - {{ parent() }}{% endblock %}

{% block stylesheets %}
    {{ parent() }}
    <link rel="stylesheet" href="{{ asset('/bundles/basevideos/css/main.css') }}" type="text/css" media="screen" />
{% endblock %}

{% block title_page %}movie{% endblock %}

{% block content %}

<h1 class="title">Vidéos</h1>

<ul>
    {% for playlist in playlist_list %}
        <li>
            <a href="{{ url('_baseVideosShowPlaylist', {'id_playlist': playlist.id, 'slug': playlist.slug}) }}" title="{{ playlist.title }}">
                <img src="{{ playlist.thumb_uri }}" alt="{{ playlist.title }}" width="320" height="180" />
                <h2>{{ playlist.title }}</h2>
                <span>{{ playlist.totalResults }}</span>
            </a>            
        </li>
    {% endfor %}
</ul>

{% endblock %}